package router

import (
	"gateway/middleware"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	r.Use(middleware.Cors())
	v1 := r.Group("/v1")
	{

		apiGroup := v1.Group("/api")
		{
			userModel(apiGroup)
			driverModel(apiGroup)
			smsCodeModel(apiGroup)
			adminModel(apiGroup)
			carModel(apiGroup)
			orderModel(apiGroup)
			payModel(apiGroup)
		}
	}
}
